package com.ynet.middleground.user.bean;

import com.ynet.core.common.BaseReqObj;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @program: 2019-10-12_userCenter
 * @description: 员工机构、部门、角色关系维护请求
 * @author: DaiGaoLe
 * @create: 2019-10-29 14:10
 **/
@Data
@ApiModel(value = "员工机构、部门、角色关系维护", description = "员工机构、部门、角色关系维护")
public class AddOrganRoleRelationshipReq extends BaseReqObj {
    private static final long serialVersionUID = -2114250100778440665L;

    // 用户id，机构/部门id、角色id，操作类型（添加关系，删除关系）
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", notes = "用户id", dataType = "Integer", required = true)
    @NotNull(message = "用户id不能为空")
    private Integer userId;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id", notes = "角色id", dataType = "Integer", required = true)
    @NotNull(message = "角色id不能为空")
    private Integer roleId;

    /**
     * 机构/部门id
     */
    @ApiModelProperty(value = "机构/部门id", notes = "机构/部门id", dataType = "Integer", required = true)
    @NotNull(message = "机构/部门id不能为空")
    private Integer organizationalId;

    /**
     * 操作类型 0 - 添加, 1 - 删除
     */
    @ApiModelProperty(value = "操作类型:0 - 添加, 1 - 删除", notes = "操作类型:0 - 添加, 1 - 删除", dataType = "String", required = true)
    @NotEmpty(message = "操作类型不能为空")
    private String operationType;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", notes = "描述", dataType = "String")
    private String describeStr;
}
